
package com.joysuch.wwyt.risk.bean;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotEmpty;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.risk.entity.RiskPointEvaluationSclItem;
import lombok.Data;

//风险点SCL评估提交BEAN
@Data
public class RiskSclEvaluationBean {

    // 风险点ID
    @NotNull(field = "ID")
    private Long id;
    // 风险区域ID
    private Long riskDistrictId;
    // @NotNull(field = "设施")
    private Long facilityId;
    @NotNull(field = "分析人")
    private Long analyzeUserId;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(field = "分析时间")
    private Date analyzeTime;
    private Long jobId;
    // @NotNull(field = "风险级别")
    private Integer riskLevel;
    // 受控号
    // @NotNull(field = "受控号")
    private String inControlCode;

    @NotNull(field = "分析项目列表")
    @NotEmpty
    List<RiskPointEvaluationSclItem> items;

    // 是否评估模板
    boolean template;

}
